package com.tianhao.shell.service;

import com.tianhao.shell.domain.ModelDomain;

import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName: ShellService
 * @Description: 生成脚本
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/11/4  11:29
 */
public interface ShellService {
    /**
     * 创建启动脚本
     * @param modelDomain 接收对象
     * @param httpServletResponse 响应
     */
    void createStartupShell(ModelDomain modelDomain, HttpServletResponse httpServletResponse);


    /**
     * 创建关闭脚本
     * @param modelDomain 接收对象
     * @param httpServletResponse 响应
     */
    void createShutDownShell(ModelDomain modelDomain, HttpServletResponse httpServletResponse);


    /**
     * 创建启动脚本
     * @param modelDomain 接收对象
     * @param httpServletResponse 响应
     */
    void createStartupShellAll(ModelDomain modelDomain, HttpServletResponse httpServletResponse);


    /**
     * 创建移动启动脚本
     * @param modelDomain 接收对象
     * @param httpServletResponse 响应
     */
    void createMoveStartupShellAll(ModelDomain modelDomain, HttpServletResponse httpServletResponse);

    /**
     * 创建移动启动脚本
     * @param modelDomain 接收对象
     * @param httpServletResponse 响应
     */
    void createMoveShutdownShellAll(ModelDomain modelDomain, HttpServletResponse httpServletResponse);

    /**
     * 创建关闭脚本
     * @param modelDomain 接收对象
     * @param httpServletResponse 响应
     */
    void createShutDownShellAll(ModelDomain modelDomain, HttpServletResponse httpServletResponse);

    /**
     * 生成提示文件
     */
    void createReadMe();
}
